package com.jt.enums;

import lombok.Data;

/**
 * 日志枚举类
 */
public enum SysLogEnum {

    /**
     * 其它
     */
    OTHER(0, "其它"),

    /**
     * 新增
     */
    INSERT(1, "新增"),

    /**
     * 修改
     */
    UPDATE(2, "修改"),
    /**
     * 删除
     */
    DELETE(3, "删除"),

    /**
     * 查询
     */
    SELECT(4, "查询");

    SysLogEnum() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    ;
    private int code;
    private String desc;

    SysLogEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
